<%--
  Created by IntelliJ IDEA.
  User: FT
  Date: 2020/8/14
  Time: 12:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<nav id="sidebar">
    <!-- Sidebar Header-->
    <div class="sidebar-header d-flex align-items-center">
        <div id="avatar" class="avatar"><img src="${user.pic}"  class="img-fluid rounded-circle"></div>
        <div class="title">
            <h1 class="h5">${user.realName}</h1>
            <p>${user.deptName}</p>
        </div>
    </div>
    <!-- Sidebar Navidation Menus--><span class="heading">Main</span>
    <ul class="list-unstyled">
        <li class="active"><a href="${pageContext.request.contextPath}/html/home.jsp"> <i class="icon-home"></i>主页 </a></li>
        <li><a href="#userDropdown"  data-toggle="collapse"> <i class="icon-windows"></i>用户列表</a>
            <ul id="userDropdown" class="collapse list-unstyled ">
                <li><a href="${pageContext.request.contextPath}/user/findPage">查看用户</a></li>
                <li><a href="${pageContext.request.contextPath}/user/toFocus?id=${user.id}">我关注的用户</a></li>
                <li><a href="${pageContext.request.contextPath}/user/showArticle">发布文章</a></li>
                <li><a href="${pageContext.request.contextPath}/user/collectArticle?id=${user.id}">我的收藏</a></li>
            </ul>
        </li>
        <!--<li><a href="login.html"> <i class="icon-logout"></i>Login page </a></li>-->

        <li><a href="#depDropdown"  data-toggle="collapse"> <i class="icon-windows2"></i>部门列表</a>
            <ul id="depDropdown" class="collapse list-unstyled ">
                <li><a href="${pageContext.request.contextPath}/user/findDept">全部部门</a></li>
                <li><a href="${pageContext.request.contextPath}/user/meetingList">会议系统</a></li>
            </ul>
        </li>

    </ul>

</nav>
